package com.example.demo.thread.ticketdemo;

/**
 * 单实例
 *
 * @author luowj12
 * @since 2021/4/16 15:23
 */
public class TicketSingletonMian {

    public static void main(String[] args) {
        TicketThread myThread = new TicketThread();
        Thread thread = new Thread(myThread,"A");
        Thread thread1 = new Thread(myThread,"B");
        Thread thread2 = new Thread(myThread,"C");
        thread.start();
        thread1.start();
        thread2.start();
    }

}
